<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>天猫双11 h5</title>
    <script>
        // 阻塞 来动态设置 html font-size
        // 立即执行函数
        (function () {
            // console.log('立即执行函数')
            function calc() {
                const w = document.documentElement.clientWidth
                document.documentElement.style.fontSize = 75 * (w / 750) + 'px'
            }
            calc()
            window.onresize = function () {
                calc()
            }
        })()
    </script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        ul, li {
            list-style: none;
        }
        html, body {
            height: 100%;
        }
        .item-section {
            min-height: 100%;
            background-color: #ee0a3b;
            position: relative;
            font-size: 24px;
        }
        .item-section_header img {
            width: 10rem;
        }
        .item-section ul {
            padding: 0.133333rem;
        }
        .flag {
            display: table;
            width: 100%;
            margin-bottom: 1px;
            background-color: #fff;
        }
        .flag .flag-item {
            /* 将a标签从inline->table-cell */
            display: table-cell;
            padding: 0.16rem 0;
            vertical-align: top;
            background-color: #fff;
        }
        .flag .figure {
            width: 2.346667rem;
            height: 2.346667rem;
        }
        .flag img {
            width: 100%;
            height: 100%;
        }
        .flag .flag-title a {
            font-size: 14px;
            color: #333;
            line-height: 1.25;
            text-align: center;
            text-decoration: none;
        }
        .flag .figcation {
            padding: 0.16rem 0;
            vertical-align: top;
            background-color: #fff;
        }
    </style>
</head>
<body>
    <div class="item-section">
        <div class="item-section_header">
            <h2>
                <img src="http://gw.alicdn.com/mt/TB1PNLZKXXXXXaTXXXXXXXXXXXX-750-481.jpg" alt="">
            </h2>
            <ul>
                <li class="flag">
                    <a href="#" class="figure flag-item">
                        <img src="https://ts3.tc.mm.bing.net/th/id/OIP-C.vjVWU-xhr-3fIWgECOr6agHaHN?r=0&rs=1&pid=ImgDetMain&o=7&rm=3" alt="">
                    </a>
                    <div class="figcation flag-item">
                        <div class="flag-title">
                            <a href="#">一只可爱的小柴郡</a>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</body>
</html>